<?php
/*
 * @Descripttion: 
 * @Author: Twoknives
 * @Date: 2021-10-23 00:43:17
 * @LastEditTime: 2021-10-23 00:52:39
 * @FilePath: \njz\app\api\model\ArticleModel.php
 */

namespace app\api\model;

use think\Model;

use app\api\model\Token;

/**
 * 文章
 */
class ArticleModel extends Model
{

    protected $name='article';

    // 开启自动写入时间戳字段
    protected $auto_timestamp = 'false'; 

 


    public function  getAddTimeAttr($value, $data)
    {
        return date('Y-m-d H:i:s', $data['add_time']);
    }
  

}
